package com.tepth.appmanageservice;

import com.tepth.appmanageservice.communicate.Communicate;
import com.tepth.appmanageservice.core.Config;
import com.tepth.appmanageservice.core.StaticClass;
import com.tepth.appmanageservice.tools.ext.ExtIO;

public class ServiceMain {
    private Communicate communicate;

    public ServiceMain() {
        this.initBasicConfiguration();

        this.communicate = new Communicate();
    }

    public void Start() {
        ExtIO.createSdDir("ai");
        ExtIO.createSdDir("ai/appManage");

        this.communicate.startListener();
    }

    // 初始基础配置
    private void initBasicConfiguration() {
        StaticClass.set_config(new Config());
        StaticClass.get_config().init();
    }
}